package com.oo.polymorphic_4.animal;

/**
 * Rabbit--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 16:36
 **/
public class Rabbit extends Animal {

    private String popular;

    public Rabbit() {
    }

    public Rabbit(String name, String color, int age, String popular) {
        super(name, color, age);
        this.popular = popular;
    }

    @Override
    public void breed() {
        System.out.println("名称："+this.getName()
        +"\n俗名："+this.getPopular()
        +"\n毛色："+this.getColor()
        +"\n年龄："+this.getAge()
        +"\n注意事项");
    }

    public String getPopular() {
        return popular;
    }

    public void setPopular(String popular) {
        this.popular = popular;
    }
}
